package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.StoreBrand;
import com.ecoolex.hotel.saas.entity.StoreBrandExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface StoreBrandMapper {
    long countByExample(StoreBrandExample example);

    int deleteByExample(StoreBrandExample example);

    int deleteByPrimaryKey(Integer brandId);

    int insert(StoreBrand record);

    int insertSelective(@Param("record") StoreBrand record, @Param("selective") StoreBrand.Column ... selective);

    StoreBrand selectOneByExample(StoreBrandExample example);

    List<StoreBrand> selectByExample(StoreBrandExample example);

    StoreBrand selectByPrimaryKey(Integer brandId);

    StoreBrand selectByPrimaryKeyWithLogicalDelete(@Param("brandId") Integer brandId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") StoreBrand record, @Param("example") StoreBrandExample example, @Param("selective") StoreBrand.Column ... selective);

    int updateByExample(@Param("record") StoreBrand record, @Param("example") StoreBrandExample example);

    int updateByPrimaryKeySelective(@Param("record") StoreBrand record, @Param("selective") StoreBrand.Column ... selective);

    int updateByPrimaryKey(StoreBrand record);

    int batchInsert(@Param("list") List<StoreBrand> list);

    int batchInsertSelective(@Param("list") List<StoreBrand> list, @Param("selective") StoreBrand.Column ... selective);

    int logicalDeleteByExample(@Param("example") StoreBrandExample example);

    int logicalDeleteByPrimaryKey(Integer brandId);
}